From: Florian Müllner Date: Thu, 20 Jan 2011 14:42:46 +0000 (+0100) Subject: environment: Fix runtime crash due to GTK+ change X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9226 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1dd35b7d0852117c7867aaf329e4ba013caa0bc9;p=gnome-shell.git environment: Fix runtime crash due to GTK+ change As Gdk.Device.get_state() does not work properly from Javascript, we used to block it in the environment. The method now has been annotated with (skip), causing shell to crash on startup as only existing methods may be blocked. Just remove the block in question, as the annotation prevents the use of that method anyway. --- diff --git a/js/ui/environment.js b/js/ui/environment.js index 0adf3af6e..d6405b3a3 100644 --- a/js/ui/environment.js +++ b/js/ui/environment.js @@ -88,8 +88,6 @@ function init() { _blockMethod('Clutter.Event.get_state', 'Shell.get_event_state', 'gjs\'s handling of Clutter.ModifierType is broken. See bug 597292.'); - _blockMethod('Gdk.Device.get_state', 'global.get_pointer', - 'gjs\'s handling of Gdk.ModifierType is broken. See bug 597292.'); _blockMethod('Gdk.Window.get_device_position', 'global.get_pointer', 'gjs\'s handling of Gdk.ModifierType is broken. See bug 597292.');